package com.itheima.demo02;

//把该类声明为抽象类
//不想让外界调用此类创建对象
//因为创建人的这个对象没有意义

public abstract class Person {
    private String name;//姓名
    private int age;//年龄

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
